package com.liu.sx.dao;

import com.liu.sx.entity.Pay;
import com.liu.sx.entity.Task;
import com.liu.sx.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface PayDao extends JpaRepository<Pay,String> , JpaSpecificationExecutor<Pay> {

        @Query(value = "select t from Pay  t where t.address like concat('%',:query,'%') ")
        Page<Pay> findAll(@Param("query") String query , Pageable pageable);

}
